package com.ruoyi.project.module.api.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.project.module.api.annotation.Login;
import com.ruoyi.project.module.api.annotation.LoginUser;
import com.ruoyi.project.module.api.common.utils.ApiResult;
import com.ruoyi.project.module.member.domain.Member;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/member")
@Api("前台会员接口")
public class AppMemberController extends BaseController {

    @Login
    @GetMapping("info")
    @ApiOperation("获取登录会员信息")
    public ApiResult info(@LoginUser Member member){
        return ApiResult.ok().put("member", member);
    }

}
